package com.yisu.auction.api.core.service.impl;

import com.yisu.auction.api.core.mapper.RechargeableCardMapper;
import com.yisu.auction.api.core.service.BaseService;
import com.yisu.auction.api.core.service.IRechargeableCardService;
import com.yisu.auction.ewf.entity.RechargeableCard;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * author: 赵杰
 * Business Description：充值卡业务实现
 * createTime：2017/9/19
 */
@Service("IRechargeableCardService")
public class RechargeableCardServiceImpl extends BaseService implements IRechargeableCardService{
    @Resource
    private RechargeableCardMapper rechargeableCardMapper;
    /**
     * author: 赵杰
     * Business Description：通过prizeId获取充值卡列表
     *
     * @param prizeId
     * @return
     */
    @Override
    public List<RechargeableCard> getRechargeableCardListByPrizeId(long prizeId) {
        return rechargeableCardMapper.getRechargeableCardListByPrizeId(prizeId);
    }

}
